<template>
	<view>
		<view v-if="list.length==0" class="padding text-grey text-center">无数据</view>
		<view v-else @tap="clickItem(item)" class="padding flex align-center justify-between solid-bottom" v-for="(item,index) in list" :key="index">
			<text>{{item.title}}</text>
			<text class="cuIcon-right"></text>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list:[]
			}
		},onLoad() {
			this.$get('mall/article/commonlist').then((res)=>{
				this.list = res.data;
			})
		},
		methods:{
			clickItem(item) {
				uni.navigateTo({
					url:'/pages/webparse?id='+item.id
				})
			}
		}
	}
</script>

<style>
	page {
		background-color: #FFFFFF;
	}
	
</style>
